package lzm.spring.service;

import lzm.spring.config.*;

@Component
public class UserService implements BeanNameAware {

    @Autowired
    private OrderService orderService;

    private String beanName;

    @Client("getStatus")
    public void test() {
        System.out.println("test方法执行");
        System.out.println(beanName);
        System.out.println(orderService);
    }

    @Override
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }
}
